namespace nu
{
    public class Parameters
    {
        private string _commandName;
        private string[] _arguments;

        public Parameters(string[] args)
        {
            Parse(args);
        }

        private void Parse(string[] args)
        {
            if (args != null && args.Length > 0)
            {
                _commandName = args[0].Replace("-","");
                _arguments = new string[args.Length - 1];
                for (int i = 1; i < args.Length; i++)
                {
                    _arguments[i - 1] = args[i];                    
                }
            }
        }

        public string CommandName
        {
            get { return _commandName; }
        }

        public string[] Arguments
        {
            get { return _arguments; }
        }
    }
}